<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<script type="text/javascript">
window.onload = function(){ 
	 var location= window.location.pathname;
	 document.getElementById('returnUrl').value =location;
}

</script>
<body>
<form method="post" class="search" action="${pageContext.request.contextPath}/skip/searchStructure.do" id="contact">
					<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody>
							<tr>
								<td>
									<div id="selopt" class="oselopt">
										<select name="type" id="type"
											style="width:90px;font-size: 16px; border:none;text-indent:0; background:#f2f2f2">
											<option class="selects" value="" selected="selected">全部图纸</option>
											<option class="selects" value="1">彩色图</option>
											<option class="selects" value="0">黑白图</option>
											<option class="selects" value="3">全年图纸</option>
										</select>
									</div> 
									<input type="hidden" id="returnType" value="${type}" />
									<input type="hidden" id="returnKeyword" value="${showMessage}" />
									<input type="hidden" id="returnUrl" name="returnUrl"/>
									<input id="keyword" class="okeyword" type="text" value="快速找图？？请输入搜索关键字"
										onfocus="if (this.value==this.defaultValue){this.value='';this.style.color='#333'}"
										onkeyup="$('#tie').show()"
										onblur="if (this.value==''){this.value=this.defaultValue;this.style.color='#999'}"
										onkeydown="javascript:if(event.keyCode==13) search('key');"
										name="keyword">
                                    <img src="${pageContext.request.contextPath}/images/png/so.png" id="soimg" />
								</td>
								<td>
								   <input id="submitBtn" name="submit" class="submit" value="搜 索" type="submit">
								</td>
							</tr>
						</tbody>
					</table>
				</form>
				<!--给搜索框赋值 -->
				<script>
			     	//回显搜索框的搜索内容
					var _keyword ="${showMessage}";
					if (_keyword != "") {
						$("#keyword").val(_keyword);
					}
					//回显搜索条件是彩色/黑白/全部
					var _colourType ="${colourType}";
					if (_colourType == "1") {
						$("#type :eq(1)").attr("selected","selected");
					}else if(_colourType == "0"){
						$("#type :eq(2)").attr("selected","selected");
					}else if(_colourType == "3"){
						$("#type :eq(3)").attr("selected","selected");
					}else{
						$("#type :eq(0)").attr("selected","selected");
					}
				</script>
</body>
</html>